package com.example.designPatten.factory.simpleFactory;

/**
 * Created by com on 16/3/22.
 */
public class PizzaFactory {
    public Pizza createPizza(String type){
        Pizza pizza=null;
        if(type.equals("Veggie")){
            return new VeggiePizza();
        }else if(type.equals("Clam")){
            return new ClamPizza();
        }

        return pizza;
    }
}
